package com.byq.mm.smartlib.obd.commands.protocol;

import com.byq.mm.smartlib.obd.commands.AbstractObdCommand;
import com.byq.mm.smartlib.obd.enums.ObdProtocols;


/** * Select the protocol to use. */
public class SelectProtocolObdCommand extends AbstractObdCommand {
	private final ObdProtocols _protocol;

	/** * @param command */
	public SelectProtocolObdCommand(ObdProtocols protocol) {
		super("AT SP " + protocol.getValue());
		_protocol = protocol;
	}
	
	/*           
	 * * (non-Javadoc) * * @see
	 * eu.lighthouselabs.obd.commands.ObdCommand#getFormattedResult()
	 */

	@Override
	public String getFormattedResult() {
		return getResult();
	}

	@Override
	public String getName() {
		return "Select Protocol " + _protocol.name();
	}
	
	@Override
	public String getRequestKey() {
		// TODO Auto-generated method stub
		return null;
	}
}
